﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using STX.Domain;
using STX.Lib.Security;
using STX.Repository;

namespace STX.Service
{
    public class BizUserService : BaseService<BizUser>
    {
        public override long Add(BizUser entity, Action<ITransactionContext, BizUser> successAction = null)
        {
            entity.Password =
                HashEncrypt.MD5(string.Format("{0}~!d^{1}%&.[=&$%@#!45g4s", entity.Email, entity.Password));
            return base.Add(entity, successAction);
        }
    }
}
